package com.itsu.graph_v2.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.itsu.graph_v2.entity.Emp;
import com.itsu.graph_v2.mapper.EmpMapper;
import com.itsu.graph_v2.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {

    @Autowired
    EmpMapper empMapper;

    @Override
    public List<Emp> findAll() {
        return empMapper.selectList(Wrappers.query());
    }
}
